package com.yootk.factory;

import com.yootk.vo.Dept;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class DeptFactoryBean implements FactoryBean<Dept> {
    @Override
    public Dept getObject() throws Exception {
        Dept dept = new Dept(1022L,"张三","深圳") ;
        return dept;
    }

    @Override
    public Class<?> getObjectType() {
        return Dept.class;
    }
}
